import mido

mid = mido.MidiFile("/storage/emulated/0/mymidi/tongJi.mid")
with open("/storage/emulated/0/mymidi/myTongJi-noChange.txt", "w") as f:
    for i, track in enumerate(mid.tracks):
        f.write(str(track) + "\n\n")
